package com.itheima.domain;

public class Result {

    private Integer code; //响应码
    private Object data; //封装成功的数据
    private String message;//封装错误信息

    public Result() {}
    public Result(Integer code) {
        this.code = code;
    }
  	public Result(Integer code,String message) {
        this.code = code;
        this.message = message;
    }
    public Result(Integer code,Object data) {
        this.code = code;
        this.data = data;
    }
  //getter和setter方法自行添加

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}